package org.csu.knowledge.clients;

import org.csu.config.FeignClientConfig;
import org.csu.knowledge.entity.vo.UserVO;
import org.csu.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "back-service",configuration = FeignClientConfig.class)
public interface UserClient {
    @GetMapping("/api/inner/users/{uid}")
    Result<UserVO> getUserInfo(@PathVariable("uid") Long uid);
}
